﻿@namespace Microsoft.FluentUI.AspNetCore.Components
@inherits FluentInputBase<TValue>
@typeparam TValue
<CascadingValue TValue="FluentRadioContext" Value="_context">
    <FluentInputLabel ForId="@Id" Label="@Label" AriaLabel="@AriaLabel" ChildContent="@LabelTemplate" Required="@Required" />
    <fluent-radio-group @ref=Element
                        id="@Id"
                        class="@ClassValue"
                        style="@StyleValue"
                        readonly=@ReadOnly
                        disabled=@Disabled
                        name="@_context!.GroupName"
                        orientation="@Orientation.ToAttributeValue()"
                        required="@Required"
                        value="@CurrentValueAsString"
                        @onradiogroupchange="HandleChange"
                        @attributes="AdditionalAttributes">
        @ChildContent
    </fluent-radio-group>
</CascadingValue>
